package com.bsoft.gol.hcs.clinical.bean.req;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.List;

/**
 * @author tongtp
 * @version v0.1
 * @className DiagnosticInformationRequest
 * @description 诊断信息
 * @create 2019-06-19 13:46
 **/

@XmlRootElement(name = "DiagnoseRecord")
public class DiagnosticInformationRequest implements Serializable {

    private Integer diagnosticType;

    private String diagnosticId;

    private String diseasesId;

    private String diagnosticName;

    private String diagnosticCode;

    private Integer mainDiagnosisSign;
    /*证候信息*/
    private List<TraChiSyndrome> traChiSyndromeList;
    /**
     * 操作类型：0新增、1修改、2删除
     */
    private Integer operationType;

    @XmlElement(name = "OperationType")
    public Integer getOperationType() {
        return operationType;
    }

    public void setOperationType(Integer operationType) {
        this.operationType = operationType;
    }


    @XmlElement(name = "DiagnoseId")
    public String getDiseasesId() {
        return diseasesId;
    }

    public void setDiseasesId(String diseasesId) {
        this.diseasesId = diseasesId;
    }

    @XmlElement(name = "DiagnosticType")
    public Integer getDiagnosticType() {
        return diagnosticType;
    }

    public void setDiagnosticType(Integer diagnosticType) {
        this.diagnosticType = diagnosticType;
    }

    public String getDiagnosticId() {
        return diagnosticId;
    }

    public void setDiagnosticId(String diagnosticId) {
        this.diagnosticId = diagnosticId;
    }

    @XmlElement(name = "MasterDiseaseSign")
    public Integer getMainDiagnosisSign() {
        return mainDiagnosisSign;
    }

    public void setMainDiagnosisSign(Integer mainDiagnosisSign) {
        this.mainDiagnosisSign = mainDiagnosisSign;
    }

    @XmlElement(name = "DiagnoseName")
    public String getDiagnosticName() {
        return diagnosticName;
    }

    public void setDiagnosticName(String diagnosticName) {
        this.diagnosticName = diagnosticName;
    }

    @XmlElement(name = "DiagnoseCode")
    public String getDiagnosticCode() {
        return diagnosticCode;
    }

    public void setDiagnosticCode(String diagnosticCode) {
        this.diagnosticCode = diagnosticCode;
    }

    @XmlElementWrapper(name = "TraChiSyndromeList")
    @XmlElement(name = "TraChiSyndrome")
    public List<TraChiSyndrome> getTraChiSyndromeList() {
        return traChiSyndromeList;
    }

    public void setTraChiSyndromeList(List<TraChiSyndrome> traChiSyndromeList) {
        this.traChiSyndromeList = traChiSyndromeList;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"diagnosticType\":")
                .append(diagnosticType);
        sb.append(",\"diagnosticId\":\"")
                .append(diagnosticId).append('\"');
        sb.append(",\"diseasesId\":\"")
                .append(diseasesId).append('\"');
        sb.append(",\"diagnosticName\":\"")
                .append(diagnosticName).append('\"');
        sb.append(",\"diagnosticCode\":\"")
                .append(diagnosticCode).append('\"');
        sb.append(",\"mainDiagnosisSign\":")
                .append(mainDiagnosisSign);
        sb.append(",\"traChiSyndromeList\":")
                .append(traChiSyndromeList);
        sb.append(",\"operationType\":")
                .append(operationType);
        sb.append('}');
        return sb.toString();
    }
}
